# 工具列表，第三方函数的说明书
tools =[
    {
        "name": "get_closing_price",
        "description": "使用该工具获取指定股票的收盘价",
        "parameters": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "股票名称",
                },
            },
            "required": ["name"],
        },
    }
]

def get_closing_price(name):
    # 朝第三方 API 请求获取股票收盘价
    if name =="贵州茅台":
        return "2725.28"
    elif name =="青岛啤酒":
        return "10.50"
    else:
        return "未找到该股票的收盘价"